FreeBSD: Socket Interface detach kills main process

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

FreeBSD: Socket Interface detach kills main process

#1 Post by sofax222 »

I have a problem about "Socket Interface" mode

I run openkore with "Socket Interface" mode in background on FreeBSD v8.1 (AMD64).

And then, run the src/Interface/attach-to-console.pl to moniter the background openkore process.
When I keyin the "detach" command to exit the moniter client (attach-to-console.pl).
Sometimes, "Sometimes" not "Always", the main openkore process in background is down (not quit) in the same time.

I don't know which programs I need to trace ?
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: FreeBSD: Socket Interface detach kills main process

#2 Post by sofax222 »

Well, there seems to be nobody to run openkore in background mode !
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: FreeBSD: Socket Interface detach kills main process

#3 Post by EternalHarvest »

Used it, haven't noticed a problem like that.
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: FreeBSD: Socket Interface detach kills main process

#4 Post by sofax222 »

EternalHarvest wrote:Used it, haven't noticed a problem like that.
I think the "detach" comand should exit the monitor provess only.
But in my scenario, the main opnekore process is down with the exit of the monitor process after the "detach" comand.

So, my question is not the "down" of main opnekore process.
My question is that the main opnekore process (running background) how to handle the "detach" command what I keyin in monitor provess (src/Interface/attach-to-console.pl) ?
That is how to trace the main opnekore process after the "detach" comand in the monitor process.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: FreeBSD: Socket Interface detach kills main process

#5 Post by EternalHarvest »

sofax222 wrote: My question is that the main opnekore process (running background) how to handle the "detach" command what I keyin in monitor provess (src/Interface/attach-to-console.pl) ?
That is how to trace the main opnekore process after the "detach" comand in the monitor process.
"detach" is handled entirely by monitor process.
If main process is down due to some error in OpenKore it usually saves a report into errors.txt. If you want to inspect actual output, run it with Socket interface without putting into background (with something like screen if you need to detach from it anyway).
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: FreeBSD: Socket Interface detach kills main process

#6 Post by sofax222 »

EternalHarvest wrote:"detach" is handled entirely by monitor process.
If main process is down due to some error in OpenKore it usually saves a report into errors.txt. If you want to inspect actual output, run it with Socket interface without putting into background (with something like screen if you need to detach from it anyway).
Yes, it is true that openkore will save the error message into errors.txt, if the main process have some thing wrong.
1. I could run the main process for all day long, even days.
2. The main process is down with the "detach" command on minitor process.
3. I find nothing in errors.txt (even it is not exist), when the main process down in the "detach" command of minitor process.