Ticket #1707 (closed bug: fixed)

Opened 12 months ago

Last modified 12 months ago

system() doesn't return a success code

Reported by: korli Owned by: axeld
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1 development
Cc: Blocked By:
Platform: All Blocking:

Description

when using the attached test app in BeOS, system() returns 0. when using it in Haiku, system() returns -1

Attachments

test_system.c (162 bytes) - added by korli 12 months ago.
test app

Change History

Changed 12 months ago by korli

test app

Changed 12 months ago by jackburton

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.

Changed 12 months ago by korli

  • status changed from new to closed
  • resolution set to fixed

we just continue to wait when a signal is received. fixed in r23439.

Note: See TracTickets for help on using tickets.