254071 Commits

Author SHA1 Message Date
kre
9572a5c228 PR bin/52640 PR bin/52641
Don't delete jobs from the jobs table merely because they finished,
if they are not the job we are waiting upon.   (bin/52640 part 1)

In a sub-shell environment, don't allow wait to find jobs from the
parent shell that had already exited (before the sub-shell was
created) and return status for them as if they are our children.
(bin/52640 part 2)

Don't have the "jobs" command also be an implicit "wait" command
in non-interactive shells.  (bin/52641)

Use WCONTINUED (when it exists) so we can report on stopped jobs that
"mysteriously" move back to running state without the user issuing
a "bg" command (eg: kill -CONT <pid>)   Previously they would keep
being reported as stopped until they exited.

When a job is detected as having changed status just as we're
issuing a "jobs" command (i.e.: the change occurred between the last
prompt and the jobs command being entered) don't report it twice,
once from the status change, and then again in the jobs command
output.   Once is enough (keep the jobs output, suppress the other).

Apply some sanity to the way jobs_invalid is processed - ignore it
in getjob() instead of just ignoring it most of the time there, and
instead always check it before calling getjob() in situations where
we can handle only children of the current shell.  This allows the
(totally broken) save/clear/restore of jobs_invalid in jobscmd() to
be done away with (previously an error while in the clear state would
have left jobs_invalid incorrectly cleared - shouldn't have mattered
since jobs_invalid => subshell => error causes exit, but better to be safe).

Add/improve the DEBUG more tracing.

XXX pullup -8
2017-10-23 10:52:07 +00:00
msaitoh
01e5a06c65 Change return value of if_initialize() and if_attach() from void to int.
Welcome to 8.99.4
2017-10-23 09:35:35 +00:00
msaitoh
351c2b7262 - If if_attach() failed in the attach function, free resources and return.
- KNF
2017-10-23 09:32:55 +00:00
msaitoh
2223ce7058 - If if_initialize() failed in the attach function, free resources and return.
- KNF
2017-10-23 09:32:33 +00:00
msaitoh
803d5cc88a If if_attach() failed in the attach function, free resources and return. 2017-10-23 09:32:00 +00:00
msaitoh
916c83ee9b If if_initialize() failed in the attach function, free resources and return. 2017-10-23 09:31:17 +00:00
msaitoh
28ff446d00 - If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
2017-10-23 09:28:38 +00:00
msaitoh
914f678899 - If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
2017-10-23 09:28:13 +00:00
msaitoh
a80b2b73e3 - If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
   failed.
2017-10-23 09:27:46 +00:00
msaitoh
82d818af91 If if_initialize() failed in the attach function, return. 2017-10-23 09:27:21 +00:00
msaitoh
e4a9eb5a72 - Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
2017-10-23 09:25:31 +00:00
msaitoh
fe1f4f1b8f - If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
2017-10-23 09:25:11 +00:00
msaitoh
35096a90e3 If error occured in the attach function, free resources and return. 2017-10-23 09:24:34 +00:00
msaitoh
cbaadec7f5 If error occured in pq3etsec_attach(), free resources and return. 2017-10-23 09:23:48 +00:00
msaitoh
4bfe816934 If error occured in bcmeth_ccb_attach(), free resources and return. 2017-10-23 09:23:25 +00:00
msaitoh
a40cbde039 - If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
2017-10-23 09:22:51 +00:00
msaitoh
cb49e3c2fa If if_attach() failed in the attach function, return. 2017-10-23 09:22:24 +00:00
msaitoh
eba490a0d2 Return if bah_attach_subr() failed. 2017-10-23 09:21:40 +00:00
msaitoh
37822dfae5 if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
2017-10-23 09:21:20 +00:00
skrll
52f18ecdea Add bwfm (and sort other 802.11 usb wifi drivers) 2017-10-23 08:08:53 +00:00
skrll
82eed12724 splserial is an alias for splhigh now. No need to splhigh twice. 2017-10-23 07:05:23 +00:00
ozaki-r
a9b3bb4d56 Provide better debug messages for ioctl 2017-10-23 06:52:17 +00:00
msaitoh
024d950bdc Fix compile error. Use const correctly. 2017-10-23 06:43:00 +00:00
maxv
30351a73b0 Add two XXXs, so that people don't get confused, a fifth region is needed
anyway.
2017-10-23 06:00:59 +00:00
msaitoh
ae10948226 Clear ifm_cur and ifm_media after removing all ifmedia entries(IFM_INST_ANY)
in ifmedia_delete_instance() like if_media.c rev. 1.32.
Now if_media_delete_instance(IFM_INST_ANY) is the same as ifmedia_removeall().
2017-10-23 03:54:40 +00:00
christos
5716b2d864 remove the braces I accidentally added. 2017-10-23 02:38:46 +00:00
wiz
3ba65d3d58 New sentence, new line. 2017-10-23 01:07:27 +00:00
wiz
6f80828675 Remove superfluous Tn. 2017-10-23 01:06:05 +00:00
wiz
3faa539e67 Sort errors. 2017-10-23 01:05:10 +00:00
wiz
661e3b5159 Remove superfluous Tn. 2017-10-23 01:03:23 +00:00
wiz
aa4b308c77 Simplify, and comment out xrefs to non-existing pages. 2017-10-23 00:59:44 +00:00
joerg
0770e646de Bump image size to 24MB, won't fit for plain evbarm otherwise. 2017-10-22 23:15:54 +00:00
christos
ffb871e671 PR/52638: matthew green: missing argument check causes m4 to core in ifelse() 2017-10-22 23:01:34 +00:00
skrll
625f57ba0d Centralise defines for DEVMAP_{ALIGN,SIZE,ENTRY,ENTRY_END} 2017-10-22 20:35:32 +00:00
abhinav
d06479fa8d All the four functions described in the man page conform to POSIX.1 2017-10-22 18:37:01 +00:00
abhinav
3a2c8ba99e Add missing word in the sentence 2017-10-22 18:26:46 +00:00
abhinav
c59c6bd4a8 Add rtsol to the NAME section as well 2017-10-22 18:09:33 +00:00
abhinav
ec2df1b139 Add quotadump to the NAME section 2017-10-22 18:00:45 +00:00
abhinav
92d8b712af Add irda to the NAME section as well 2017-10-22 17:58:10 +00:00
abhinav
3fca90b4d2 Add newsyslog.conf to the NAME section
Also fix couple of lint warnings from mandoc
2017-10-22 17:53:49 +00:00
abhinav
2f7d801ad1 Add pgrep and prenice to the NAME section 2017-10-22 17:45:46 +00:00
abhinav
a6d0162a04 Add getcap to the NAME section as well 2017-10-22 17:40:53 +00:00
abhinav
b3e27e93ee Add gunzip and zcat to the NAME section as well 2017-10-22 17:36:49 +00:00
abhinav
75bd3393d3 Add snprintb_m to the NAME section. 2017-10-22 16:59:18 +00:00
abhinav
d4ec480093 Add missing functions to the NAME section 2017-10-22 16:55:32 +00:00
abhinav
1cfbd11bb0 Add hid_parse_usage_page and hid_parse_usage_in_page to the NAME section 2017-10-22 16:49:13 +00:00
abhinav
69d19b9c6c Remove tputs from NAME section since it is described in terminfo(3) 2017-10-22 16:44:51 +00:00
abhinav
6c258b9750 Add missing functions to the NAME section 2017-10-22 16:42:34 +00:00
abhinav
3e5ec8a33f Add missing function names in the NAME section for rest of the man pages in libpthread 2017-10-22 16:37:24 +00:00
abhinav
3aabdfe0ee Remove description of pthread_barrierattr_getpshared and pthread_barrierattr_setpshared
These functions are described in pthread_barrierattr(3) man page
2017-10-22 16:15:02 +00:00