in reply to Disc burning

fork and flock and a lock that blocks. The child pid (fork) locks a file using flock, once that lock is achieved (correctly), you can use the CD-ROM. Inside that locked region of code, you can log to a file to record the status. You could also wait on the child to get the exit status.