Could you make a little code improvement, because now the only way to use cudaminer with screen
is to run pure screen, and execute cudaminer from screen session. It works fine.
But if you want to have the same, but executed from shell script - there is a SIGHUP signal, which terminates screen completely.
root@linux:~/cpuminer-master# gdb screen
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/bin/screen...(no debugging symbols found)...done.
(gdb) set args ./minerd -V
(gdb) run
Starting program: /usr/bin/screen ./minerd -V
[screen is terminating]
Program received signal SIGHUP, Hangup.
0x00007f9de428f7e0 in __pause_nocancel () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
Hi, I'm not sure what you are trying to achieve. I can run minerd in screen with no problem at all, and even script it (with
screen -dm minerd [OPTIONS]), and never had an issue.
Regarding the gdb output you posted, you will probably get the same result if you try to run a simple program like
ls instead of
minerd -V.