M
M
Mir2017-07-04 05:36:50
PHP
Mir, 2017-07-04 05:36:50

Why does the process hang (not terminate) after the completion of the php script?

Good day!
There is a code:

<?php
echo 'Процесс данного скрипта не удаляется сразу после завершения выполнения скрипта<br>';
echo 'функция exit также не помогает :(';
exit;

After running this script on the hosting, a process is created, but this process does not end with the completion of the script, but hangs for another 5 minutes (hosting limitation), you either have to wait for its completion, or terminate (kill) through the console, or instead of exit, use posix_kill(getmypid(), SIGTERM);
That is, exit does not helps.
In connection with what this can be and how to fix it?
Could this be a server issue, server settings, or PHP settings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Litvinenko, 2017-07-04
@edli007

And in what form is PHP worth it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question