
Implement signal_watchdog, a child-process checker for dangerous functions.
signal_watchdog(clean_function, 1, true)Expected result
Good function\nFor your own tracking. Tests grade your code.
signal_watchdog(crashing_function, 1, true)Expected result
Bad function: Segmentation fault\nExpected files
signal_watchdog.cAllowed functions
forkwaitpidexitalarmsigactionkillprintfstrsignalerrnosigaddsetsigemptysetsigfillsetsigdelsetsigismember
v0.40: Create exercises. Challenge the community.
Meet Studio →Implement signal_watchdog, a child-process checker for dangerous functions.
signal_watchdog(clean_function, 1, true)Expected result
Good function\nFor your own tracking. Tests grade your code.
signal_watchdog(crashing_function, 1, true)Expected result
Bad function: Segmentation fault\nExpected files
signal_watchdog.cAllowed functions
forkwaitpidexitalarmsigactionkillprintfstrsignalerrnosigaddsetsigemptysetsigfillsetsigdelsetsigismember
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.