sys_fcntl() supports dup
[akaros.git] / kern / src / process.c
index 6ff105f..13a1a82 100644 (file)
@@ -333,9 +333,9 @@ error_t proc_alloc(struct proc **pp, struct proc *parent)
        p->open_files.fd = p->open_files.fd_array;
        p->open_files.open_fds = (struct fd_set*)&p->open_files.open_fds_init;
        /* Connect to stdin, stdout, stderr */
-       assert(insert_file(&p->open_files, dev_stdin) == 0);
-       assert(insert_file(&p->open_files, dev_stdout) == 1);
-       assert(insert_file(&p->open_files, dev_stderr) == 2);
+       assert(insert_file(&p->open_files, dev_stdin,  0) == 0);
+       assert(insert_file(&p->open_files, dev_stdout, 0) == 1);
+       assert(insert_file(&p->open_files, dev_stderr, 0) == 2);
 
        atomic_inc(&num_envs);
        frontend_proc_init(p);