search for: setpgrp

Displaying 18 results from an estimated 18 matches for "setpgrp".

Did you mean: 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 sane thing to do in my opinion. And...
2006 Feb 07
0
configure.ac: typos in Ultrix and NewsOS sections
Hi all. Bernhard Simon has reported a couple of typos in configure.ac in the sections for Ultrix and Sony NewsOS (NEED_SETPRGP -> NEED_SETPGRP). Now I can't imagine them being heavily used, and the change ought to affect only those (famous last words :-). Anyone see any reason not to do this? Index: configure.ac =================================================================== RCS file: /usr/local/src/security/openssh/cvs/openssh_...
2005 Aug 29
14
Oracle 9.2.0.6 on Solaris 10
How can I tell if this is normal behaviour? Oracle imports are horribly slow, an order of magnitude slower than on the same hardware with a slower disk array and Solaris 9. What I can look for to see where the problem lies? The server is 99% idle right now, with one database running. Each sample is about 5 seconds. I''ve tried setting kernel parameters despite the docs saying that
2011 Feb 27
4
[PATCH] Add minimal mkstemp(3) implementation.
.../* Basic PTY 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 p...
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...t;= 0) { if (pid != -1) { errno = EINVAL; return -1; } - pid = 0; /* wait4() expects pid=0 for indiscriminate wait. */ + pid = 0; /* wait4() wants pid=0 for indiscriminate wait. */ } - return wait4(pid, (union wait *)stat_loc, options, NULL); -} - -pid_t setsid(void) -{ - return setpgrp(0, getpid()); + wait_pid = wait4(pid, &statusp, options, NULL); + stat_loc = (int *)statusp.w_status; + return wait_pid; } int @@ -81,10 +89,7 @@ int tcsetpgrp(int fd, pid_t pgrp) { - int s; - - s = pgrp; - return (ioctl(fd...
2006 Sep 30
1
<net/if_tap.h> on FreeBSD
FreeBSD's <net/if_tap.h> requires u_char to be defined: checking net/if_tap.h usability... no checking net/if_tap.h presence... yes configure: WARNING: net/if_tap.h: present but cannot be compiled configure: WARNING: net/if_tap.h: check for missing prerequisite headers? configure: WARNING: net/if_tap.h: see the Autoconf documentation configure: WARNING: net/if_tap.h: section
2016 Jan 15
0
[klibc:master] Remove open_cloexec()
..., O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); if (root_fd < 0 || old_fd < 0) return -errno; diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index f797166..a0e440d 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -27,7 +27,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 open.o openat.o \ fread2.o fwrite2.o fgets.o fputc.o fputs.o puts.o putchar.o \ sleep.o usleep.o strtotimespec.o strtotime...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...trntoumax.o strntoimax.o \ - atoi.o atol.o atoll.o \ - strtol.o strtoll.o strtoul.o strtoull.o \ - strtoimax.o strtoumax.o \ - globals.o exit.o atexit.o onexit.o \ - execl.o execle.o execv.o execvpe.o execvp.o execlp.o execlpe.o \ - fork.o vfork.o wait.o wait3.o waitpid.o system.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 \ - fopen.o fread.o fread2.o fgetc.o fgets.o \ - fwrite.o fwrite2.o fputc.o fputs.o puts.o putchar.o \ - sleep.o usleep.o strtotimespec.o...
2000 Jul 18
5
scp not shutting down in 2.1.1p4
Hi! as I just noted, after scp the connection does not shut down properly. When I do a "scp file targethost:path", on targethost a "sshd" process is left running. I do use --with-default-path="/usr/local/openssh/bin:/usr/bin:/usr/local/bin" to assure, that the corrensponding openssh-scp is used. It also seems, that normal sessions are not always closed properly.
2005 Jul 18
0
why $cdr{'CALLERID'} and $cdr{'DNID'} are empty in perl agi connected with asterisk manager
...uot;; } elsif ($pid) { # Create lockfile, and finish parent process # open(PID, "> $lock_file") || die "ast-rad-acc.pl: Unable to create lockfile $lock_file\n"; print PID "$pid"; close PID; chown $uid, $gid, $lock_file; exit; } else { # daemon setpgrp(); select(STDERR); $| = 1; select(STDOUT); $| = 1; openlog('ast-rad-acc', 'cons,pid', 'daemon'); syslog('notice', "RADIUS accounting for Asterisk started"); } # Install signall handler # $SIG{INT} = \&safe_exit; $SIG{QUIT} = \&...
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...<= 0) + { + if (pid != -1) + { + errno = EINVAL; + return -1; + } + pid = 0; /* wait4() expects pid=0 for indiscriminate wait. */ + } + return wait4(pid, (union wait *)stat_loc, options, NULL); +} +#endif /* NEED_WAITPID */ + +#ifdef NEED_SETSID +pid_t setsid(void) +{ + return setpgrp(0, getpid()); +} +#endif /* !NEED_SETSID */ diff -ruN openssh-1.2.2/bsd-misc.h ossh-1.2.2n/bsd-misc.h --- openssh-1.2.2/bsd-misc.h Thu Jan 6 03:28:41 2000 +++ ossh-1.2.2n/bsd-misc.h Thu Jan 27 00:42:24 2000 @@ -65,4 +65,16 @@ int seteuid(uid_t euid); #endif /* !defined(HAVE_SETEUID) && d...
2001 May 04
19
SSH connection hanging on logout
I am running OpenSSH 2.9p1 on SunOS 5.7 w/4-24-2001 patch cluster. Like many other users I am seeing the hanging session on logout with background processes. This is a huge problem for me as I centrally manage 50+ machines with rdist across ssh. Instead of just complaining about the problem I thought I would put my CS degree to use and try to track down the problem myself. For starters,
2008 Jan 08
2
[LLVMdev] Adding ClamAV to the llvm testsuite (long)
.../ > /* #undef SENDMAIL_BIN */ > > /* major version of Sendmail */ > /* #undef SENDMAIL_VERSION_A */ > > /* minor version of Sendmail */ > /* #undef SENDMAIL_VERSION_B */ > > /* subversion of Sendmail */ > /* #undef SENDMAIL_VERSION_C */ > > /* Define to 1 if the `setpgrp' function takes no argument. */ > #define SETPGRP_VOID 1 > > #if 0 > /* lets assume system has proper stdint that defines uintX_t. */ > /* The number of bytes in type int */ > /* #define SIZEOF_INT 4 */ > > /* The number of bytes in type long */ > #define SIZEOF_LONG...
2007 Dec 18
0
[LLVMdev] Adding ClamAV to the llvm testsuite (long)
Chris Lattner wrote: > One way to do this is to add a "cut down" version of the app to the > test suite. I disabled optional features in clamav-config.h > >> 2. GPL license. Chris? > > Any open source license that allows unrestricted redistribution is > fine in llvm-test Ok, I have created a script that automatically checks out ClamAV 0.92-stable source code
2007 Dec 18
3
[LLVMdev] Adding ClamAV to the llvm testsuite (long)
On Mon, 17 Dec 2007, Evan Cheng wrote: > We always welcome more tests. But it looks like there are two issues > here. > > 1. The autoconf requirement. Is it possible to get one configuration > working without the need for autoconf? One way to do this is to add a "cut down" version of the app to the test suite. > 2. GPL license. Chris? Any open source license that
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...n/trunk/knl/linux/usr//include -I/root/gen/trunk/knl/linux/usr//arch/powerpc/include -D__KLIBC__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=32 -fno-stack-protector -fwrapv -m32 -Os -W -Wall -Wno-sign-compare -Wno-unused-parameter -c -o usr/klibc/system.o usr/klibc/system.c ppc-linux-gcc -Wp,-MD,usr/klibc/.setpgrp.o.d -nostdinc -iwithprefix include -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/arch/ppc -Iusr/include/arch/ppc -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/bits32 -Iusr/include/bits32 -I/root/ofs/trunk/packages/klibc-2.0.2/usr/klibc/../include -Iusr/klibc/../include -I/root/ofs/trunk/...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: > > > Find attached two patches I have in order to build klibc 2.0.2 > against kernel 3.8.13 > We had to introduce those patches when going from kernel 3.6 to kernel 3.7 > Hope it helps. > those patches are wrong and again very brittle. just use the way it is described in `make help': A) cd ~/src/linux
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: