mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Merge 030e398c66 into ededbfbaa3
This commit is contained in:
commit
588d5971b4
2 changed files with 13 additions and 1 deletions
|
|
@ -1,11 +1,15 @@
|
||||||
{
|
{
|
||||||
"name" : "icewind/smb",
|
"name" : "mmelyp/smb",
|
||||||
"description" : "php wrapper for smbclient and libsmbclient-php",
|
"description" : "php wrapper for smbclient and libsmbclient-php",
|
||||||
"license" : "MIT",
|
"license" : "MIT",
|
||||||
"authors" : [
|
"authors" : [
|
||||||
{
|
{
|
||||||
"name" : "Robin Appelman",
|
"name" : "Robin Appelman",
|
||||||
"email": "icewind@owncloud.com"
|
"email": "icewind@owncloud.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name" : "Manuel Mely",
|
||||||
|
"email": "mmely@mmely.de"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require" : {
|
"require" : {
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,14 @@ class RawConnection {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($terminate) {
|
if ($terminate) {
|
||||||
|
$status = proc_get_status($this->process);
|
||||||
|
$ppid = $status['pid'];
|
||||||
|
$pids = preg_split('/\s+/', `ps -o pid --no-heading --ppid $ppid`);
|
||||||
|
foreach($pids as $pid) {
|
||||||
|
if(is_numeric($pid)) {
|
||||||
|
posix_kill($pid, 9); //9 is the SIGKILL signal
|
||||||
|
}
|
||||||
|
}
|
||||||
proc_terminate($this->process);
|
proc_terminate($this->process);
|
||||||
}
|
}
|
||||||
proc_close($this->process);
|
proc_close($this->process);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue