diff options
Diffstat (limited to 'ipc/msgque.c')
-rw-r--r-- | ipc/msgque.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ipc/msgque.c b/ipc/msgque.c index 552f081..d664182 100644 --- a/ipc/msgque.c +++ b/ipc/msgque.c @@ -193,11 +193,6 @@ int main(int argc, char **argv) int msg, pid, err; struct msgque_data msgque; - if (getuid() != 0) { - printf("Please run the test as root - Exiting.\n"); - exit(1); - } - msgque.key = ftok(argv[0], 822155650); if (msgque.key == -1) { printf("Can't make key\n"); @@ -206,7 +201,6 @@ int main(int argc, char **argv) msgque.msq_id = msgget(msgque.key, IPC_CREAT | IPC_EXCL | 0666); if (msgque.msq_id == -1) { - err = -errno; printf("Can't create queue\n"); goto err_out; } |