FreeBSD Bugzilla – Attachment 126597 Details for
Bug 170346
Changes to support waitid() and related stuff
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
waitid-wait6.patch
waitid-wait6.patch (text/plain; charset=UTF-8), 1.29 KB, created by
jau
on 2012-08-04 05:51:29 UTC
(
hide
)
Description:
waitid-wait6.patch
Filename:
MIME Type:
Creator:
jau
Created:
2012-08-04 05:51:29 UTC
Size:
1.29 KB
patch
obsolete
>--- /dev/null 2012-08-04 07:33:00.000000000 +0300 >+++ lib/libc/gen/waitid.c 2012-07-30 12:43:59.000000000 +0300 >@@ -0,0 +1,57 @@ >+ >+#include "namespace.h" >+#include <sys/types.h> >+#include <sys/wait.h> >+#include <stddef.h> >+#include <string.h> >+#include <signal.h> >+#include <errno.h> >+#include "un-namespace.h" >+ >+int >+__waitid (idtype, id, info, flags) >+ idtype_t idtype; >+ id_t id; >+ siginfo_t *info; >+ int flags; >+{ >+ int status; >+ pid_t ret; >+ >+ /* >+ * NOTICE! >+ * The traditional PID/PGID == 0 to wait for >+ * any process in the caller's own process group >+ * still works when the idtype is set to either >+ * P_PID or P_PGID. >+ */ >+ >+ if (info) { >+ memset (info, '\0', sizeof (*info)); >+ } >+ >+ /* >+ * In case you wish to start waiting for any >+ * processes >+ * - running in a certain jail (zone), >+ * - running on a certain cpu, or >+ * - nailed to a certain CPU set, >+ * - etc. >+ * you will have to extend the kern_wait6() in >+ * the kernel to support such idtype_t flavours. >+ */ >+ >+ ret = _wait6 (idtype, id, &status, flags, NULL, info); >+ >+ if (ret < 0) { >+ ret = -1; >+ } >+ else { >+ ret = 0; >+ } >+ >+ return ((int) ret); >+} >+ >+__weak_reference(__waitid, waitid); >+__weak_reference(__waitid, _waitid);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 170346
:
126596
| 126597 |
126598
|
126599
|
126600