#include <process.h>
#include <debug.h>
#include <string.h>
+#include <sched.h>
int sys_sigaction(stack_frame_t*);
/* wait for a signal from any process */
dbg_printf("[%u] going to wait\n", self);
- ret_val = process_wait(-1);
+ /* FIXME: Who is going to wake up the task? */
+ ret_val = sched_sleep(NULL);
/* TODO: Handle the signal */
cproc = process_get_current();
ret_val = len < (sizeof(buffer) - 1) ? len : (sizeof(buffer) - 1);
- process_memcpy_ptok(cproc, buffer, str, ret_val);
+ process_memcpy_ptok(cproc, buffer, (void*)str, ret_val);
buffer[ret_val] = 0;
dbg_printf("%s\n", buffer);