search for: getpgrp

Displaying 20 results from an estimated 59 matches for "getpgrp".

2001 Sep 17
1
autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID
> From: Akim Demaille <akim at epita.fr> > Date: 17 Sep 2001 11:22:19 +0200 > > | 2001-09-16 Tim Van Holder <tim.van.holder at pandora.be> > | * lib/autoconf/functions.m4: (AC_FUNC_GETPGRP) Don't rely on > | setpgrp() being present. I looked into that problem a bit more. Several programs use AC_FUNC_GETPGRP and GETPGRP_VOID, including Bash, Gawk, and OpenSSH, but they use it only to decide whether they must pass an arg (either 0 or getpid()) to getpgrp, which is the only sa...
2000 Sep 05
3
[2.2.0p1] patch: generic detection of correct getpgrp() invocation
Hi. Several OSes have a getpgrp() function that takes an argument, unlike what POSIX mandates. NeXT was covered, but SunOS wasn't. This provides a generic solution through autoconf. Charles ======================================================================== --- configure.in.orig-2.2.0p1 Wed Aug 30 18:20:05 2000 +++...
2013 Feb 15
2
getpgrp
These days, sshd.c has: static void grace_alarm_handler(int sig) { ... if (getpgid(0) == getpid()) { signal(SIGTERM, SIG_IGN); killpg(0, SIGTERM); } sigdie(...); } however (really) old BSDs do not have getpgid(). They do have getpgrp(), which does what we want here. The question is what to do if we have neither: return the pid (and thus terminate nothing) or return -1 and kill everything wihout getting to the sigdie(). I vote for the latter (since they're unlikely to be able to log anything in a signal-safe manner anyway)....
2001 Mar 02
2
make 2.5.1p1 on Solaris8 (fwd)
...SH_PROGRAM=\"/opt/openssh/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/o penssh/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/opt/openssh/libexec/sftp-ser ver\" -DHAVE_CONFIG_H -c scp.c scp.c: In function `foregroundproc': scp.c:1124: too many arguments to function `getpgrp' make: *** [scp.o] Error 1 Do you know what is wrong? Thanks in advance, Peter
2000 Dec 18
2
cross compiling configure errors
...all! I want to cross compile openssh to our own CPU and our embedded Linux platform, however I get at least the following errors when running configure: checking whether snprintf correctly terminates long strings... configure: error: can not run test program while cross compiling checking whether getpgrp takes no argument... configure: error: cannot check getpgrp if cross compiling checking for OpenSSL directory... configure: error: can not run test program while cross compiling checking for RSA support... configure: error: can not run test program while cross compiling I'm not really famili...
2005 Nov 28
20
open/stat64 syscalls run faster on Xen VM than standard Linux
...uname 0.75 0.000038 19 2 stat64 0.38 0.000019 19 1 ioctl 0.18 0.000009 9 1 time 0.18 0.000009 9 1 getppid 0.16 0.000008 8 1 getpgrp 0.16 0.000008 8 1 getuid32 0.14 0.000007 7 1 getgid32 0.12 0.000006 6 1 getpid 0.12 0.000006 6 1 geteuid32 0.12 0.000006 6 1 gete...
2001 Mar 14
3
OpenSSH 2.3.0p1: HP-UX 11.00 64-bit
I have encountered a problem with using OpenSSH 2.3.0p1 on 64-bit HP-UX 11.00 systems. This bug does not exhibit itself on any 32-bit HP-UX 11.00 or HP-UX 10.20 systems that I have built 2.3.0p1 on. OpenSSH 2.3.0p1 was built with HPs ANSI C compiler with OpenSSL 0.9.6 and zlib 1.1.3. The problem is with the call to vhangup(2) in sshd when interactive sessions are started. The problem does not
2004 Dec 08
2
[Bug 2130] suppressing progress bar when not the foreground process
https://bugzilla.samba.org/show_bug.cgi?id=2130 ------- Additional Comments From lukem@NetBSD.org 2004-12-08 03:06 ------- Created an attachment (id=828) --> (https://bugzilla.samba.org/attachment.cgi?id=828&action=view) rsync-progress.patch -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA
2002 Jun 25
3
BSD/OS with privsep
...VE_CYGWIN */ #ifdef HAVE_SETPCRED setpcred(pw->pw_name); #endif /* HAVE_SETPCRED */ #ifdef HAVE_LOGIN_CAP - if (setusercontext(lc, pw, pw->pw_uid, - (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) { + int flags = LOGIN_SETALL & ~LOGIN_SETPATH; +#ifdef __bsdi__ + if (getpid() != getpgrp()) + flags &= ~LOGIN_SETLOGIN; +#endif + if (setusercontext(lc, pw, pw->pw_uid, flags) < 0) { perror("unable to set user context"); exit(1); } #else # if defined(HAVE_GETLUID) && defined(HAVE_SETLUID) /* Sets login uid for accounting */ if (getluid(...
2014 Feb 03
1
Compiling openssh v6.5 with --with-ssl-dir not working
...ersion until v6.5. Is this a bug ? More details below: [root at test openssh-6.5p1]# ./configure --prefix=/usr/local/openssh-6.5p1 --with-tcp-wrappers --with-selinux --with-kerberos5 --with-ssl-engine --with-pam --with-md5-passwords --with-ssl-dir=/usr/local/openssl-1.0.1f ... ... checking whether getpgrp requires zero arguments... yes checking openssl/opensslv.h usability... yes checking openssl/opensslv.h presence... yes checking for openssl/opensslv.h... yes checking OpenSSL header version... 90802f (OpenSSL 0.9.8e-rhel5 01 Jul 2008) checking OpenSSL library version... 90802f (OpenSSL 0.9.8e-fips...
2001 Oct 20
8
Recent openssl is required for OPENSSL_free [Re: Please test snapshots for 3.0 release] (fwd)
No response yet, so resending. -- Pekka Savola "Tell me of difficulties surmounted, Netcore Oy not those you stumble over and fall" Systems. Networks. Security. -- Robert Jordan: A Crown of Swords ---------- Forwarded message ---------- Date: Fri, 12 Oct 2001 09:44:54 +0300 (EEST) From: Pekka Savola <pekkas at netcore.fi> To: Damien Miller
2005 Jul 10
1
openssh-4.1p1 on OSX 10.4.1 w/ openssl-0.9.8 NOT FINDING -lcrypto
hi all, building on OSX 10.4.1, with a prereq of: % which openssl /usr/local/ssl/bin/openssl % openssl version OpenSSL 0.9.8 05 Jul 2005 building either openssh-4.0p1 or openssh-4.1p1 on OSX 10.4.1, w/: ./configure --with-ssl-dir=/usr/local/ssl configure fails w/: ... checking whether getpgrp requires zero arguments... yes checking OpenSSL header version... not found configure: error: OpenSSL version header not found. popping up a dialog of: Link (dyld) error: Library not loaded: libcrypto.0.9.8.dylib Referenced from: /usr/ports/openssh-4.1p1/./conftest Reason: image not f...
2002 Feb 06
2
SFTP Status Bar..
...args->nalloc * sizeof(char *)); args->list[args->num++] = xstrdup(buf); args->list[args->num] = NULL; +} + +/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */ +static int +foregroundproc(void) +{ + static pid_t pgrp = -1; + int ctty_pgrp; + + if (pgrp == -1) + pgrp = getpgrp(); + + return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && + ctty_pgrp == pgrp)); +} + +int +getttywidth(void) +{ + struct winsize winsize; + + if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1) + return (winsize.ws_col ? winsize.ws_col : 80); + else + return (80);...
2011 Feb 27
4
[PATCH] Add minimal mkstemp(3) implementation.
...TY functions. These only work if devpts is mounted! */ __extern int unlockpt(int); diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index af40367..62a3268 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -18,7 +18,7 @@ klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \ setpgrp.o getpgrp.o daemon.o \ printf.o vprintf.o fprintf.o vfprintf.o perror.o \ statfs.o fstatfs.o umount.o \ - creat.o open.o openat.o open_cloexec.o \ + creat.o mkstemp.o open.o openat.o open_cloexec.o \ fopen.o fread.o fread2.o fgetc.o fgets.o \ fwrite.o fwrite2.o fputc.o fputs.o puts.o putc...
2003 Jun 25
0
[Bug 603] configure: error: OpenSSL version header not found
...checking for getutxline... yes checking for pututxline... yes checking for setutxent... yes checking for utmpxname... yes checking for daemon... no checking for daemon in -lbsd... no checking for getpagesize... yes checking whether snprintf correctly terminates long strings... yes checking whether getpgrp requires zero arguments... yes checking OpenSSL header version... not found configure: error: OpenSSL version header not found. We have prngd & EGD installed in this box. Also we have configured openSSL without any errors... Please help... ------- You are receiving this mail because: -----...
2006 Jul 04
0
[Bug 1206] configure: error: *** 'ar' missing, please install or fix your $PATH
...t the following error: checking whether snprintf correctly terminates long strings... yes checking whether vsnprintf returns correct values on overflow... yes checking whether snprintf can declare const char *fmt... yes checking whether system supports SO_PEERCRED getsockopt... no checking whether getpgrp requires zero arguments... yes checking OpenSSL header version... 90802f (OpenSSL 0.9.8b 04 May 2006) checking OpenSSL library version... 90704f (OpenSSL 0.9.7d 17 Mar 2004) checking whether OpenSSL's headers match the library... no configure: error: Your OpenSSL headers do not match your libra...
2002 Mar 22
0
Install OpenSSH-3.1p1 Error !
...nfig.log file Thanks Perrin [root at perrin openssh-3.1p1]# ./configure ..................... ..................... checking for getuserattr in -ls... no checking for daemon... yes checking for getpagesize... yes checking whether snprintf correctly terminates long strings... yes checking whether getpgrp takes no argument... yes checking for OpenSSL directory... configure: error: Could not find working OpenSSL library, please install or check config.log -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 93978 bytes De...
2002 Jan 30
1
Quick sftp status indicator.
.../29 23:16:28 @@ -310,3 +310,133 @@ args->list[args->num++] = xstrdup(buf); args->list[args->num] = NULL; } + +/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */ +static int +foregroundproc(void) +{ + static pid_t pgrp = -1; + int ctty_pgrp; + + if (pgrp == -1) + pgrp = getpgrp(); + + return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && + ctty_pgrp == pgrp)); +} + +void +progressmeter(int flag, off_t statbytes, off_t totalbytes, char *curfile) +{ +#define STALLTIME 5 /* number of seconds before xfer assumed "stalled" */ + static cons...
2005 Jul 10
0
[RESOLVED, in 'findssl.sh'] Re: openssh-4.1p1 on OSX 10.4.1 w/ openssl-0.9.8 NOT FINDING -lcrypto
hi all, > configure fails w/: > > ... > checking whether getpgrp requires zero arguments... yes > checking OpenSSL header version... not found > configure: error: OpenSSL version header not found. i first suspected the 'culprit' to be the following stanza in "contrib/findssl.sh": ... echo Searching for OpenSSL header files. if [ -...
2009 Oct 25
0
alternate output for progressmeter
...c volatile sig_atomic_t win_resized; /* for window resizing */ +int ? ?progresstype = 0; ? ? ? /* use default tty progress reporting */ + ?/* units for format_size */ ?static const char unit[] = " KMGT"; ?static int ?can_output(void) ?{ + ? ? ? if (progresstype) return 1; ? ? ? ?return (getpgrp() == tcgetpgrp(STDOUT_FILENO)); ?} @@ -158,9 +161,9 @@ ? ? ? ?/* filename */ ? ? ? ?buf[0] = '\0'; - ? ? ? file_len = win_size - 35; + ? ? ? file_len = (progresstype)?(strlen(file)+11):(win_size - 35); ? ? ? ?if (file_len > 0) { - ? ? ? ? ? ? ? len = snprintf(buf, file_len + 1, "\...