search for: pid_t

Displaying 20 results from an estimated 576 matches for "pid_t".

2007 Feb 01
1
pre-xfer exec fails in FreeBSD
...o get the return status. After doing a little ugly patch for the wait_process function as follow, pre-xfer works again. --- main.c Thu Feb 1 22:42:23 2007 +++ main.c.orig Sat Oct 14 07:46:32 2006 @@ -103,10 +103,7 @@ * remember_children(), we succeed instead of returning an error. */ pid_t wait_process(pid_t pid, int *status_ptr, int flags) { - pid_t waited_pid; - do { - waited_pid = waitpid(pid, status_ptr, flags); - } while (errno == EINTR); + pid_t waited_pid = waitpid(pid, status_ptr, flags); if (waited_pid == -1 && errno =...
2004 Aug 06
2
[PATCH] main.c: use pid_t and cleanup command line opts parsing.
Use pid_t instead of int for variable processID Add error message if fork() fails. Do not immediately return() after encountering the -c flag - we may still have additional argv members to find and take care of. /dale -------------- next part -------------- Index: main.c ==================================...
2001 Sep 28
1
openssh-2.9.9p2 assumes pid_t, uid_t, etc. are not 'long'
openssh-2.9.9p2 assumes that pid_t, uid_t, gid_t, and mode_t are no wider than int. GCC complains about this assumption on 32-bit Solaris 8 sparc, where these types are 'long', not 'int'. This isn't an actual problem at runtime on this host, as long and int are the same width, but it is a problem on other hosts...
2020 Oct 05
3
Re: [PATCH nbdkit v2 1/3] server: Add new APIs for reading the client’s SO_PEERCRED.
...en the client > +connected over a Unix domain socket, and only works for Linux. > + > +On success this returns the peer process ID. On error, > +C<nbdkit_error> is called and this call returns C<-1>. Is int always going to be sufficient? Or are there platforms with 64-bit pid_t? Mingw is an interesting beast; I've seen conflicting stories on whether 64-bit windows has 32- or 64-bit pids (the spawn APIs manage 64-bit handles, but other windows APIs return 32-bit int), so 64-bit pid_t on mingw does seem to be a real concern. > + > +=head2 C<nbdkit_peer_uid&gt...
2002 Sep 03
2
[patch] for rsync
...hld_handler to save the status of up to 10 child processes and make them available for use by wait_process. I hope I've done this right. Thanks for your help JW. Dave ---------------------------------------------------------------------------------- 29a30,34 > struct pid_status { > pid_t pid; > int status; > } pid_stat_table[10]; > 37c42,47 < while (waitpid(pid, status, WNOHANG) == 0) { --- > pid_t waited_pid; > int cnt; > > while ( 1 ) { > waited_pid = waitpid(pid, status, WNOHANG); > if ( waited_pid == 0 ) { 39a50...
2006 Jun 07
4
[patch] s390: vfork support
...0200 +++ b/usr/klibc/SYSCALLS.def 2006-06-07 13:01:54.000000000 +0200 @@ -28,7 +28,7 @@ void _exit,exit::_exit(int) ; A lot of architectures need architecture-specific vfork ; stubs, due to the no-stack requirement. These are the ; architectures which don't. -<alpha,m32r,ppc,ppc64,sh> pid_t vfork() +<alpha,m32r,ppc,ppc64,sh,s390,s390x> pid_t vfork() <sparc,sparc64> pid_t vfork@forkish() #endif <!alpha> pid_t getpid()
2013 Jul 09
2
[LLVMdev] Error building compiler-rt
Hi, I get the following error while building compiler-rt: /slowfs/msret_s1_us03/ajost/src/llvm-3.3.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux.cc:315:22: error: no matching function for call to 'clone' pid_t tracer_pid = clone(TracerThread, tracer_stack.Bottom(), ^~~~~ /usr/include/bits/sched.h:71:12: note: candidate function not viable: requires 4 arguments, but 7 were provided extern int clone (int (*__fn) (void *__arg), void *__child_stack, Inside sched.h, clone is indeed decla...
2017 Feb 03
5
[PATCH 0/5] Support socket activation in virt-p2v.
As the subject says, support socket activation in virt-p2v. I have added upstream support for socket activation to nbdkit already: https://github.com/libguestfs/nbdkit/commit/7ff39d028c6359f5c0925ed2cf4a2c4c751af2e4 I posted a patch for qemu-nbd, still waiting on more reviews for that one: https://www.mail-archive.com/qemu-devel@nongnu.org/msg427246.html I tested this against old and new qemu
2011 Aug 30
0
[PATCH 2/2] include: [sched.h] misssing pid_t definition
...clude to fix: /usr/lib/klibc/include/sched.h:20:40: error: expected ?)? before ?int? /usr/lib/klibc/include/sched.h:21:39: error: expected ?)? before ?unsigned? /usr/lib/klibc/include/sched.h:22:39: error: expected ?)? before ?unsigned? /usr/lib/klibc/include/sched.h:35:1: error: unknown type name ?pid_t? Signed-off-by: maximilian attems <max at stro.at> --- usr/include/sched.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usr/include/sched.h b/usr/include/sched.h index a1cc568..6874855 100644 --- a/usr/include/sched.h +++ b/usr/include/sched.h @@ -6,6 +6,7 @@ #d...
2005 Jan 05
1
CVS Compile problem on Solaris
...isk\" -DASTCONFPATH= \"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules \" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -DNO_AST_MM -c -o smsq.o smsq.c smsq.c: In function `txqcheck': smsq.c:103: warning: int format, pid_t arg (arg 4) smsq.c: In function `rxqcheck': smsq.c:173: warning: int format, pid_t arg (arg 4) smsq.c:197: warning: implicit declaration of function `unsetenv' smsq.c:215: warning: implicit declaration of function `setenv' smsq.c: In function `main': smsq.c:650: warning: int format,...
2013 Feb 15
2
getpgrp
...sc.c,v retrieving revision 1.36 diff -u -p -r1.36 bsd-misc.c --- openbsd-compat/bsd-misc.c 8 Nov 2010 22:26:23 -0000 1.36 +++ openbsd-compat/bsd-misc.c 15 Feb 2013 00:26:37 -0000 @@ -246,4 +246,18 @@ int isblank(int c) { return (c == ' ' || c == '\t'); } + +#ifndef HAVE_GETPGID +pid_t +getpgid(pid_t pid) +{ +#ifdef HAVE_GETPGRP + if (pid == 0) + return getpgrp(); +#endif + errno = ESRCH; + return -1; +} +#endif + #endif Index: openbsd-compat/bsd-misc.h =================================================================== RCS file: /var/cvs/openssh/openbsd-compat/bsd-misc.h,v ret...
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
* Introduce new variants of the logging functions which include errno values (converted using strerror) in the messages passed to the application''s logging callback. * Use the new errno-including logging functions everywhere where appropriate. In general, xc_... functions return errno values or 0; xs_... functions return 0 or -1 (or some such) setting errno. * When
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + #include "includes.h" #ifdef HAVE_NEXT @@ -8,46 +30,32 @@ pid_t posix_wait(int *status) { - #undef wait /* Use NeXT's wait() function */ union wait statusp; pid_t wait_pid; + #undef wait /* Use NeXT's wait() function */ wait_pid = wait(&statusp); status = (int *) statusp.w_status; return wait_pid; } - -int...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...gt;tty); + record_logout(s->pid, s->tty, s->pw->pw_name); /* Release the pseudo-tty. */ pty_release(s->tty); --- sshlogin.c~ Tue May 8 16:33:06 2001 +++ sshlogin.c Mon Nov 19 12:08:34 2001 @@ -94,11 +94,11 @@ /* Records that the user has logged out. */ void -record_logout(pid_t pid, const char *ttyname) +record_logout(pid_t pid, const char *ttyname, const char *user) { struct logininfo *li; - li = login_alloc_entry(pid, NULL, NULL, ttyname); + li = login_alloc_entry(pid, user, NULL, ttyname); login_logout(li); login_free_entry(li); } --- sshlogin.h~ Wed Jul...
2006 Apr 22
1
ia64 build failure - no fork or ppoll syscalls in 2.6.16
...truct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); @@ -12,3 +15,5 @@ { return __ppoll(ufds, nfds, timeout, sigmask, sizeof *sigmask); } + +#endif --- klibc-1.3.7.orig/klibc/SYSCALLS.def +++ klibc-1.3.7/klibc/SYSCALLS.def @@ -21,7 +21,7 @@ <?!ia64> pid_t clone::__clone(unsigned long, void *) <?ia64> pid_t clone::__clone2(unsigned long, void *, void *) # if ! _KLIBC_NO_MMU -<!sparc> pid_t fork() +<!sparc,ia64> pid_t fork() <sparc> pid_t fork@forkish() #endif #if _KLIBC_REAL_VFORK -------------- next part --------------...
2013 Jul 09
0
[LLVMdev] Error building compiler-rt
...iuc.edu Subject: [LLVMdev] Error building compiler-rt Hi, I get the following error while building compiler-rt: /slowfs/msret_s1_us03/ajost/src/llvm-3.3.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux.cc:315:22: error: no matching function for call to 'clone' pid_t tracer_pid = clone(TracerThread, tracer_stack.Bottom(), ^~~~~ /usr/include/bits/sched.h:71:12: note: candidate function not viable: requires 4 arguments, but 7 were provided extern int clone (int (*__fn) (void *__arg), void *__child_stack, Inside sched.h, clone is indeed decla...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...ecord_logout(s->pid, s->tty, s->pw->pw_name); /* Release the pseudo-tty. */ pty_release(s->tty); --- sshlogin.c~ Tue May 8 16:33:06 2001 +++ sshlogin.c Tue Jan 29 10:56:59 2002 @@ -94,11 +94,11 @@ /* Records that the user has logged out. */ void -record_logout(pid_t pid, const char *ttyname) +record_logout(pid_t pid, const char *ttyname, const char *user) { struct logininfo *li; - li = login_alloc_entry(pid, NULL, NULL, ttyname); + li = login_alloc_entry(pid, user, NULL, ttyname); login_logout(li); login_free_entry(li); } --- sshlogin.h~ Wed Jul...
2005 Sep 23
1
Unexplained error
Hello, I like to use rsync to transfer over mine and other peoples ever changing mail folder onto a remote server. My Server (FreeBSD 5.4) RSYNC Version is: 2.6.6 Protocol Version 29 My Client (OSX 10.4.2) RSYNC Version is: 2.6.3 Protocol Version 28 I use this command rsync -vvv --progress --stats --recursive --times \ --perms --links \ --delete /test/my?email?folder/*
2013 Jul 17
1
[LLVMdev] Error building compiler-rt
...* > > I get the following error while building compiler-rt:**** > > ** ** > > /slowfs/msret_s1_us03/ajost/src/llvm-3.3.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux.cc:315:22: > error: no matching function for call to 'clone'**** > > pid_t tracer_pid = clone(TracerThread, tracer_stack.Bottom(),**** > > ^~~~~**** > > /usr/include/bits/sched.h:71:12: note: candidate function not viable: > requires 4 arguments, but 7 were provided**** > > extern int clone (int (*__fn) (void *__arg), void *__chil...
2003 Nov 17
0
[PATCH] --source-filter && --dest-filter for rsync 2.5.6
...+ args[ac++] = buf; + } + if (size_only) args[ac++] = "--size-only"; diff -ur rsync-2.5.6/pipe.c rsync-2.5.6-filtered/pipe.c --- rsync-2.5.6/pipe.c 2002-04-08 09:39:56.000000000 +0200 +++ rsync-2.5.6-filtered/pipe.c 2003-11-16 13:20:34.000000000 +0100 @@ -146,3 +146,90 @@ } +pid_t run_filter(char *command[], int out, int *pipe_to_filter) +{ + pid_t pid; + int pipefds[2]; + extern int blocking_io; + + if (verbose >= 2) { + print_child_argv(command); + } + + if (pipe(pipefds) < 0) { + rprintf(FERROR, "pipe: %s\n", strerror(errno)); + exit_cleanup(RERR_IPC);...