int sys_setsid(void)
{
- return(-ENOSYS);
+ process_t *cproc;
+ int ret_val;
+
+ /*
+ * This call should basically just detach the process from its
+ * parent, so it can continue after the parent process has ended.
+ */
+
+ ret_val = -EFAULT;
+ cproc = process_get_current();
+
+ if(cproc) {
+ /*
+ * At this point there is nothing that needs to be done here. Maybe
+ * in the future there will be more that needs to be done.
+ */
+
+#if 0
+ process_t *pproc;
+
+ pproc = process_lookup(cproc->p_pid);
+#endif /* 0 */
+
+ ret_val = process_detach(cproc);
+ }
+
+ return(ret_val);
}
int sys_posixcall(stack_frame_t *stk)
pid_t process_get_id(process_t*);
int process_exit(process_t*, int);
int process_fork(int);
+int process_detach(process_t*);
#endif /* __PROCESS_H */