Posts by uthacod • 13 points
3 posts
-
0
votes1
answer43
viewsQ: Error setsid function relative to ppid
****When running the source below relative to the creation of a Deamon with the setsid function, it was verified that after the ps -fu root command, ppid is not 1, that is the same as the init of…
-
1
votes1
answer34
viewsQ: st_gid and I-Node with different values within the stat structure
I’m trying to build a program within the function stat that shows the value of inode and the value of gid. Follows the code: #include <stdio.h> #include <sys/types.h #include…
-
0
votes1
answer48
viewsQ: non-zero getpid and getuid for root
I have the following problem. While executing: void main(void){ uid_t getuid(void); gid_t getgid(void); uid_t user_id; gid_t group_id; printf("user_id: %d\n",user_id); printf("group_id:…