Southclaws / sampctl

The Swiss Army Knife of SA:MP - vital tools for any server owner or library maintainer.
GNU General Public License v3.0
242 stars 34 forks source link

Sampctl stays as a background process - Linux (openmp) #474

Closed DobbysGamertag closed 2 years ago

DobbysGamertag commented 2 years ago

When using openmp as a server version, it continues to stay open in the background when I use CTRL + C to close the server. SA:MP server runtime does not have this issue.

{
    "user": "DobbysGamertag",
    "repo": "test",
    "tag": "0.0.1",
    "entry": "gamemodes/test.pwn",
    "output": "gamemodes/test.amx",
    "dependencies": [
        "pawn-lang/samp-stdlib"
    ],
    "runtime": {
        "version": "openmp"
    },
    "local": true
}
dobby in test at uwuntu on  master [?] 
➜ sampctl p run
Starting open.mp server (0.0.0.0)
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                                               
 200718 dobby     20   0  189036 142924  15104 S   0.3   1.8   0:00.38 samp03svr                                                                                                                                                             

Executing the binary manually, works (./samp03svr) however using the sampctl p run command does not. It only occurs when using openmp as the version. I don't want to have to use kill -9 every time.

ohmypxl commented 2 years ago

Isn't this looks like openmp issue?

Southclaws commented 2 years ago

I think this is something related to open.mp not obeying sigkill or sigterm (I forgot which one sampctl sends)

cc @Cheaterman @amyrahmady