int main( ) { ipckey = ftok("/home/stu/nramsey/cs360-os/week06/dining.c", 420); semid = semget(ipckey, 5, 0666 | IPC_CREAT); if(semid < 0){ printf("Error - %s\n", strerror(errno)); _exit(1); } Ponder(); if (semctl(semid, 0, IPC_RMID) == -1) { perror("semctl"); exit(1); } return 0; }
int main() { Ponder(); return 0; }