I have written a program for basic file reading/writing. When I added lseek, a function new to me it did not terminate. I have tried to use the following commands to get it to do so:
ctrl kill PID kill -9 PID killall Processname
I have disconnected the telnet session, but the host is still reachable.
Since it is a BSP for an embedded device, it does not support all commands. For instance, ps will only return:
PID USER TIME COMMAND 1001 root 0:00 ./07-7
I have found How is it possible that kill -9 for a process on Linux has no effect? but due to the previously mentioned limitation I can not see ps STAT, or execute ps axopid,comm,wchan.
Since the board is on a remote location, with no-one in place and other users in need to use it over the weekend, I do not want to reboot it. I can also not just let the program run, since it has a lock on a shared file needed by others. Any advice would be appreciated!
write(fd, pix1, 64); lseek(fd, -19, SEEK_SET); //added last, after which it did not recover read(fd, pix2, 64); close(fd);