Creates a basic, empty configuration for the given PID

@param pid
the pid for this configuration
@return empty configuration
436243
public static ConfigurationOption newConfiguration(String pid) {
        return new org.ops4j.pax.exam.cm.internal.ConfigurationProvisionOption(pid, new HashMap<String, Object>());
    }
134623
public MemberConfig setId(String id) {
    return setId(id != null ? MemberId.from(id) : null);
  }
278765
private function writePidFile(string $pidfile, $pid = null)
    {
        if (is_null($pid)) {
            $pid = getmypid();
        }

        file_put_contents($pidfile, $pid) || die(sprintf('Could not write PID information to %s', $pidfile));
    }
504280
@Override
    public void deleted(String pid) {
        final ServiceRegistration<T> registration = registrations.get(pid);
        if (registration != null) {
            LOGGER.info("Unregistering OSGi service for pid \"{}\"...", pid);
            final T service = bundleContext.getService(registration.getReference());
            registration.unregister();
            LOGGER.info("Destroying service object for pid \"{}\"...", pid);
            destroy(pid, service);
        }
    }
482239
public function createFork($pid, SharedMemory $shm, $debug = false)
    {
        return new Fork($pid, $shm, $debug);
    }
1201476
public void write_pid(OtpErlangPid pid) {
	write1(pid.tag());
	write_atom(pid.node());
	write4BE(pid.id());
	write4BE(pid.serial());
	switch (pid.tag()) {
	case OtpExternal.pidTag:
	    write1(pid.creation());
	    break;
	case OtpExternal.newPidTag:
	    write4BE(pid.creation());
	    break;
	default:
	    throw new AssertionError("Invalid pid tag " + pid.tag());
	}
    }
1249512
public static String normalize(String pidString)
            throws MalformedPIDException {
        if (pidString == null) {
            throw new MalformedPIDException("PID is null.");
        }
        
        return normalize(pidString, 0, pidString.length());
    }
1089641
public final InputStream retrieve(String pid)
            throws LowlevelStorageException {
        File file = getFile(pid);
        return fileSystem.read(file);
    }
476274
public static CommandLine buildKillCommandLine(String pid)
    {
        CommandLine command;

        if (SystemUtils.IS_OS_WINDOWS)
        {
            command = new CommandLine("taskkill")
                    .addArgument("/F")
                    .addArgument("/pid")
                    .addArgument(pid);
        }
        else
        {
            command = new CommandLine("kill").addArgument(pid);
        }
        
        return command;
    }
418495
public static function setNiceness($niceness, $pid = null) {

        return is_null($pid) ? @proc_nice($niceness) : @pcntl_setpriority($pid, $niceness);

    }
539880
def write_pid(self, pid):
        
        self.fpid.seek(0)
        self.fpid.truncate()
        self.fpid.write("%d" % pid)
        self.fpid.close()
        del self.fpid
1088415
public static String getPid() {
        if (pid == null) {
            String runtimeName = ManagementFactory.getRuntimeMXBean().getName();
            if (runtimeName == null) {
                pid = "unknown";
            } else {
                int index = runtimeName.indexOf('@');
                if (index < 0) {
                    pid = runtimeName;
                } else {
                    pid = runtimeName.substring(0, index);
                }
            }
        }
        return pid;
    }
990036
private File createAttachFile(int pid) throws IOException {
        String fn = ".attach_pid" + pid;
        String path = "/proc/" + pid + "/cwd/" + fn;
        File f = new File(path);
        try {
            f.createNewFile();
        } catch (IOException x) {
            f = new File(tmpdir, fn);
            f.createNewFile();
        }
        return f;
    }
545800
private String getExtends(String pid) {
        RegistryEntry re = getRegistryEntry(pid);
        return re == null ? null : re.getExtends();
    }
302581
public function loadById($pId)
    {
        if (! $pId instanceof Id) {
            $id = new Id($pId);
        } else {
            $id = $pId;
        }

        return $this->_loadByAttribute(static::IDFIELD, $id->getOrig());
    }
353265
public function create($pid, $attrs = [])
    {
        if (isset($attrs['constants'])) {
            $attrs['constants'] = $this->parseTsConstants($attrs['constants']);
        }

        return parent::create($pid, $attrs);
    }
1116379
public static String drpcPids(Map conf) throws IOException {
        String ret = drpc_local_dir(conf) + FILE_SEPERATEOR + "pids";
        try {
            FileUtils.forceMkdir(new File(ret));
        } catch (IOException e) {
            LOG.error("Failed to create dir " + ret, e);
            throw e;
        }
        return ret;
    }