Ed Schouten
3a41ec6af7
Don't clobber td->td_retval[0] in proc_reap().
...
While writing tests for CloudABI, I noticed that close() on process
descriptors returns the process ID of the child process. This is
interesting, as close() is only allowed to return 0 or -1. It turns out
that we clobber td->td_retval[0] in proc_reap(), so that wait*()
properly returns the process ID.
Change proc_reap() to leave td->td_retval[0] alone. Set the return value
in kern_wait6() instead, by keeping track of the PID before we
(potentially) reap the process.
Differential Revision: https://reviews.freebsd.org/D3032
Reviewed by: kib
2015-07-09 12:04:45 +00:00
..
2014-10-09 05:33:25 +00:00
2015-01-23 21:07:08 +00:00
2015-01-08 21:46:28 +00:00
2015-06-10 10:48:12 +00:00
2015-06-24 15:52:26 +00:00
2015-06-10 10:48:12 +00:00
2015-06-10 10:48:12 +00:00
2014-09-04 21:31:25 +00:00
2015-06-10 10:43:59 +00:00
2015-04-18 21:50:53 +00:00
2014-04-05 16:54:47 +00:00
2015-02-05 01:43:21 +00:00
2015-02-04 14:49:47 +00:00
2015-05-21 16:43:26 +00:00
2015-03-22 13:11:56 +00:00
2015-05-22 17:05:21 +00:00
2014-06-28 03:56:17 +00:00
2015-06-26 04:14:05 +00:00
2015-02-20 20:49:00 +00:00
2015-07-08 13:19:13 +00:00
2014-05-29 01:42:22 +00:00
2015-01-07 01:01:39 +00:00
2014-10-23 18:23:50 +00:00
2015-03-16 19:29:19 +00:00
2015-06-10 10:48:12 +00:00
2015-06-30 15:22:47 +00:00
2015-07-09 12:04:45 +00:00
2015-03-16 19:18:45 +00:00
2014-10-28 12:00:39 +00:00
2015-06-10 10:48:12 +00:00
2015-04-22 14:38:58 +00:00
2015-06-30 17:00:45 +00:00
2015-06-17 13:15:54 +00:00
2015-06-28 10:51:08 +00:00
2015-05-22 11:09:41 +00:00
2014-06-28 03:56:17 +00:00
2015-07-04 06:54:15 +00:00
2015-01-22 11:12:42 +00:00
2015-01-10 06:48:35 +00:00
2013-11-25 07:38:45 +00:00
2015-03-16 00:10:03 +00:00
2015-05-09 20:08:36 +00:00
2015-04-01 12:42:26 +00:00
2015-06-30 17:00:45 +00:00
2014-05-02 07:57:40 +00:00
2015-06-12 10:01:24 +00:00
2014-06-28 03:56:17 +00:00
2014-06-28 03:56:17 +00:00
2015-04-21 10:55:53 +00:00
2014-06-28 03:56:17 +00:00
2015-04-14 14:22:34 +00:00
2014-06-28 03:56:17 +00:00
2015-06-10 10:48:12 +00:00
2015-02-15 08:44:30 +00:00
2015-06-10 10:43:59 +00:00
2015-06-14 08:33:14 +00:00
2013-08-15 20:19:17 +00:00
2015-04-29 10:23:02 +00:00
2015-06-25 00:15:37 +00:00
2014-12-13 21:00:10 +00:00
2015-06-12 10:01:24 +00:00
2014-02-22 01:41:45 +00:00
2013-08-22 07:39:53 +00:00
2015-05-19 16:23:47 +00:00
2015-06-10 10:48:12 +00:00
2015-01-22 11:12:42 +00:00
2015-06-12 10:01:24 +00:00
2015-05-29 13:24:17 +00:00
2015-06-10 10:48:12 +00:00
2015-07-06 16:07:21 +00:00
2015-07-08 18:42:08 +00:00
2015-06-10 10:43:59 +00:00
2015-06-10 10:48:12 +00:00
2015-01-11 20:48:29 +00:00
2015-04-14 00:02:39 +00:00
2015-03-28 21:21:40 +00:00
2014-02-13 22:24:36 +00:00
2015-04-22 14:38:58 +00:00
2015-04-22 14:38:58 +00:00
2014-03-14 06:29:43 +00:00
2015-07-09 07:20:15 +00:00
2015-05-24 14:44:06 +00:00
2015-04-29 10:23:02 +00:00
2015-07-07 15:22:29 +00:00
2015-06-16 20:19:00 +00:00
2013-10-27 21:39:16 +00:00
2015-06-30 17:00:45 +00:00
2015-04-01 12:42:26 +00:00
2014-06-26 13:57:44 +00:00
2014-12-12 09:37:18 +00:00
2014-02-10 19:59:46 +00:00
2014-10-21 07:31:21 +00:00
2015-01-20 03:54:30 +00:00
2014-12-21 05:07:11 +00:00
2015-02-06 16:09:01 +00:00
2014-10-21 07:31:21 +00:00
2014-12-13 21:00:10 +00:00
2014-07-11 13:58:48 +00:00
2014-12-30 02:39:47 +00:00
2014-06-28 03:56:17 +00:00
2015-04-30 15:48:48 +00:00
2014-02-10 19:59:46 +00:00
2015-06-09 21:39:38 +00:00
2014-11-26 14:10:00 +00:00
2014-07-16 22:18:19 +00:00
2015-03-17 21:00:31 +00:00
2014-08-11 15:06:07 +00:00
2015-01-26 16:26:28 +00:00
2015-01-22 11:12:42 +00:00
2014-06-28 03:56:17 +00:00
2015-06-10 10:43:59 +00:00
2015-05-26 01:40:33 +00:00
2014-11-01 17:05:15 +00:00
2015-06-10 10:43:59 +00:00
2015-05-21 15:16:18 +00:00
2015-06-10 10:48:12 +00:00
2013-08-30 07:37:45 +00:00
2015-05-22 17:05:21 +00:00
2015-07-07 19:29:18 +00:00
2015-03-16 00:10:03 +00:00
2015-07-09 09:22:21 +00:00
2015-04-11 15:40:28 +00:00
2014-09-22 16:20:47 +00:00
2015-06-02 18:37:04 +00:00
2014-11-12 09:57:15 +00:00
2015-04-18 21:50:53 +00:00
2015-04-18 21:50:13 +00:00
2015-04-18 21:50:53 +00:00
2015-04-29 10:23:02 +00:00
2015-04-29 10:23:02 +00:00
2015-07-02 19:14:30 +00:00
2015-06-10 10:48:12 +00:00
2015-07-06 18:53:56 +00:00
2015-02-17 23:54:06 +00:00
2014-07-26 19:27:34 +00:00
2014-11-30 12:52:33 +00:00
2015-05-22 17:05:21 +00:00
2015-01-09 12:08:51 +00:00
2015-06-30 17:19:58 +00:00
2015-03-17 14:16:50 +00:00
2015-04-11 15:40:28 +00:00
2015-04-11 15:40:28 +00:00
2015-06-12 11:32:20 +00:00
2015-06-10 10:48:12 +00:00
2015-02-23 15:24:43 +00:00
2015-06-12 11:32:20 +00:00
2015-06-14 14:08:52 +00:00
2015-06-16 13:09:18 +00:00
2015-07-06 14:09:00 +00:00
2015-06-27 09:44:14 +00:00
2015-04-21 13:55:24 +00:00
2015-05-29 13:24:17 +00:00
2015-07-04 15:46:39 +00:00
2014-11-06 12:19:39 +00:00
2015-06-16 13:09:18 +00:00
2014-12-30 21:40:45 +00:00
2015-07-04 06:54:15 +00:00
2015-07-05 22:56:41 +00:00
2015-07-02 14:31:47 +00:00
2014-11-13 18:01:51 +00:00
2015-07-05 22:44:41 +00:00
2015-06-16 13:09:18 +00:00
2015-07-05 22:37:33 +00:00
2015-03-30 22:49:26 +00:00