Opened 17 years ago
Closed 17 years ago
#1707 closed bug (fixed)
system() doesn't return a success code
Reported by: | korli | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/libroot.so | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
when using the attached test app in BeOS, system() returns 0. when using it in Haiku, system() returns -1
Attachments (1)
Change History (3)
by , 17 years ago
Attachment: | test_system.c added |
---|
comment:1 by , 17 years ago
our system() call does:
status_t returnValue; status_t error = wait_for_thread(thread, &returnValue); if (error != B_OK) {
errno = error; return -1;
} return returnValue;
Maybe we could just return B_OK instead. After all, the error check is already done before.
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
we just continue to wait when a signal is received. fixed in hrev23439.
Note:
See TracTickets
for help on using tickets.
test app