<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/24925">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: add "show pid"<br><br>Related: OS#4609<br>Change-Id: Ib636050afc1eed134f450f2f1cdd3b51153b0160<br>---<br>M src/vty/command.c<br>1 file changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/25/24925/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vty/command.c b/src/vty/command.c</span><br><span>index 854c379..e747add 100644</span><br><span>--- a/src/vty/command.c</span><br><span>+++ b/src/vty/command.c</span><br><span>@@ -3040,6 +3040,13 @@</span><br><span>         return CMD_SUCCESS;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+DEFUN(show_pid,</span><br><span style="color: hsl(120, 100%, 40%);">+      show_pid_cmd, "show pid", SHOW_STR "Displays the process ID\n")</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+   vty_out(vty, "%i%s", getpid(), VTY_NEWLINE);</span><br><span style="color: hsl(120, 100%, 40%);">+        return CMD_SUCCESS;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> DEFUN(show_uptime,</span><br><span>       show_uptime_cmd, "show uptime", SHOW_STR "Displays how long the program has been running\n")</span><br><span> {</span><br><span>@@ -4365,6 +4372,7 @@</span><br><span>        install_node(&config_node, config_write_host);</span><br><span> </span><br><span>       /* Each node's basic commands. */</span><br><span style="color: hsl(120, 100%, 40%);">+ install_lib_element(VIEW_NODE, &show_pid_cmd);</span><br><span>   install_lib_element(VIEW_NODE, &show_uptime_cmd);</span><br><span>        install_lib_element(VIEW_NODE, &show_version_cmd);</span><br><span>       install_lib_element(VIEW_NODE, &show_online_help_cmd);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/24925">change 24925</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/24925"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ib636050afc1eed134f450f2f1cdd3b51153b0160 </div>
<div style="display:none"> Gerrit-Change-Number: 24925 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>